package com.pyk.mapper;


import com.pyk.entity.Courses;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface CoursesMapper {

    @Select("select * from Courses where name like concat('%',#{name},'%')")
    List<Courses> List();
    @Delete("delete from Courses where id=#{id}")
    void delete(Integer id);

    @Insert("insert into Course(courses_id,course_name,course_categories_id,course_description,)")
    void add(Courses courses);


}
